﻿using System;
using System.Collections.Generic;
using System.Text;
using Gtk;

namespace GtkSharpTutorial
{
    class Form
    {
        public event DeleteEventHandler DeleteEvent;

        public Form()
        {
            /* Create a new window */
            Window window = new Window("Pixmap'd Buttons!");

            /* It's a good idea to do this for all windows. */
            window.DeleteEvent += (s, e) => DeleteEvent?.Invoke(s, e);

            /* Sets the border width of the window. */
            window.BorderWidth = 10;

            VBox box = new VBox();

            NormalButtons normalButtons = new NormalButtons();
            box.PackStart(normalButtons.GetButton("index.jpeg", "cool button"), false, false, 3);
            //window.Add(normalButtons.GetButton("index.jpeg", "cool button"));

            ToggleButtons toggleButtons = new ToggleButtons();
            box.PackStart(toggleButtons.GetButton(), false, false, 3);

            CheckButtons checkButtons = new CheckButtons();
            box.PackStart(checkButtons.GetButton(), false, false, 3);
            box.PackStart(checkButtons.GetButtonWithLabel(), false, false, 3);
            box.PackStart(checkButtons.GetButtonWithMnemonic(), false, false, 3);

            RadioButtons radioButtons = new RadioButtons();
            box.PackStart(radioButtons.GetButton(), false, false, 3);

            window.Add(box);

            window.ShowAll();
        }
    }
}
